import request from '@/utils/request'

// /card/product/list POST
export function listProduct(data) {
  return request({
    url: '/card/product/list',
    method: 'post',
    data
  })
}

// /card/product/add POST
export function addProduct(data) {
  return request({
    url: '/card/product/add',
    method: 'post',
    data
  })
}

// /card/product/delete GET
export function deleteProduct(id) {
  return request({
    url: '/card/product/delete/' + id,
    method: 'get',
  })
}